# Generated from AVMApp.pro.
#指定CMake的最低版本要求
cmake_minimum_required(VERSION 3.24)
#指定工程信息
project(BasicTriangle LANGUAGES CXX)
# Generated from AVMApp.pro.
#指定CMake的最低版本要求
cmake_minimum_required(VERSION 3.24)
#指定工程信息
project(BasicTriangle LANGUAGES CXX)

#c++版本特性支持
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

#开启对qt等特性的支持
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

#opencv
set(OpenCV_DIR /home/li/install/share/OpenCV/)
find_package(OpenCV REQUIRED)
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS OpenGL)
find_package(Qt6 COMPONENTS OpenGLWidgets)
find_package(Qt6 COMPONENTS Network)

qt_add_executable(BasicTriangle
    trianglewidget.h
    trianglewidget.cpp	
    main.cpp
)
set_target_properties(BasicTriangle PROPERTIES
    WIN32_EXECUTABLE TRUE
    MACOSX_BUNDLE TRUE
)
target_link_libraries(BasicTriangle PUBLIC
    Qt::Core
    Qt::Gui
    Qt::OpenGL
    Qt::OpenGLWidgets
    Qt::Widgets
    Qt::Network
    ${OpenCV_LIBS}
)

